<?php
namespace Home\Controller;

class LinkController extends HomeController {

	public function index(){
		$link = D('Friendlink');

		$list = $link->where(array('status'=>1))->select();
		$this->assign('list',$list);
		$this->display();
	}

	public function add(){
		if ($result) {
			$this->success();
		}else{
			$this->error();
		}
	}
}